package com.gxa.service.community;



import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.gxa.dto.communitydto.HouseOwnerDto;
import com.gxa.entity.community.Community;
import com.gxa.entity.community.House;
import com.gxa.entity.community.Owner;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yjl
 * @since 2022-10-11 10:05:39
 */
public interface HouseService extends IService<House> {
    //分页条件查询
    PageInfo queryAll(House house,Integer pageNum,Integer pageSize);

    //通过id查询
    House getById(Integer id);

    //通过房屋id查询业主信息
    List<HouseOwnerDto> queryByHouseId(String houseNum);
    //增
    void add(House house);
    //删
    void deleteById(Integer id);
    //改
    void update(House house);

    //判断编码是否重复
    List<House> queryByNum(String houseNum);
}
